<?php
session_start();
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT);

// 配置项
define('ADMIN_PASSWORD', '123456'); // 登录密码，可自行修改
define('DATA_DIR', __DIR__ . '/html_canvas_data');
define('DATA_FILE', DATA_DIR . '/app_data.json');
define('HTML_FILES_DIR', DATA_DIR . '/html_files'); // 单独存储HTML文件的目录
define('PC_RESOLUTIONS', json_encode([
    ['w' => 1920, 'h' => 1080, 'name' => 'PC - 1920x1080'],
    ['w' => 1440, 'h' => 900, 'name' => 'PC - 1440x900'],
]));
define('MOBILE_RESOLUTIONS', json_encode([
    ['w' => 375*0.8, 'h' => 667*0.8, 'name' => 'Mobile - 375x667 (80%)'],
    ['w' => 375, 'h' => 667, 'name' => 'Mobile - 375x667 (iPhone 8)'],
    ['w' => 414, 'h' => 896, 'name' => 'Mobile - 414x896 (iPhone 11)'],
    ['w' => 360, 'h' => 720, 'name' => 'Mobile - 360x720 (Android)'],
    ['w' => 480, 'h' => 854, 'name' => 'Mobile - 480x854 (Android)'],
]));